using System;

namespace SharpMud.Server.Systems.Metadata
{
	[AttributeUsage(System.AttributeTargets.Class)]
	public sealed class GuidAttribute : System.Attribute, IServerSystemMetadatum
	{
		private System.Guid _ServerSystemGuid;

		public GuidAttribute(string serverSystemGuid)
		{
			_ServerSystemGuid = new System.Guid(serverSystemGuid);
		}

		public GuidAttribute(System.Guid serverSystemGuid)
		{
			_ServerSystemGuid = serverSystemGuid;
		}

		#region IServerSystemMetadatum Members

		public string Name
		{
			get
			{
				return "Guid";
			}
		}

		public System.Guid Value
		{
			get
			{
				return this._ServerSystemGuid;
			}
		}
		string IServerSystemMetadatum.Value
		{
			get
			{
				return _ServerSystemGuid.ToString();
			}
		}

		#endregion
	}
}
